import http from '../utils/http.js'

// 用户信息
export const apiGetView = data => http.get('/user/user/view',data)

// 编辑
export const apiPostInfoUpdate = data => http.post('/user/user/info/update',data)

// 积分记录
export const apiGetAccountIndex = data => http.get('/user/log/account/index',data)

//用户视频
export const apiGetUserWorl = data => http.get('/user/user/work/index',data)

// 用户视频删除
export const apiGetUserWorlDelete = data => http.post('/user/user/work/delete',data)

// 用户喜欢
export const apiGetUserLike = data => http.get('/user/user/like/index',data)

//兑换说明
export const apiGetSystemView = data => http.get('/user/config/system/view',data)

// 会员列表
export const apiGetMemberIndex = data => http.get('/user/product/member/index',data)

// 积分列表
export const apiGetIntegralIndex = data => http.get('/user/product/integral/index',data)

// 充值
export const apiPostOrderIntegralCreate = data => http.post('/user/order/integral/create',data)

// 充值记录
export const apiGetOrderIntegralIndex = data => http.get('/user/order/integral/index',data)

// 充值金额统计
export const apiGetOrderIntegralCount= data => http.get('/user/order/integral/count',data)

// 积分兑换
export const apiPostOrderMemberCreate = data => http.post('/user/order/member/create',data)

// 积分兑换记录
export const apiGetOrderMemberIndex = data => http.get('/user/order/member/index',data)

// 关注列表
export const apiGetFansIndexFollow = data => http.get('/user/user/fans/index-follow',data)

// 粉丝列表
export const apiGetFansIndex = data => http.get('/user/user/fans/index',data)

// 关注
export const apiPostFansCreate = data => http.post('/user/user/fans/create',data)

// 取消关注
export const apiPostFansCancel = data => http.post('/user/user/fans/cancel',data)

// 更换账号
export const apiPostLoginIndex = data => http.post('/user/login/index',data)

// 更换账号 - 短信验证码
export const apiPostLoginCode = data => http.post('/user/login/code',data)

// 绑定手机短信验证
export const apiPostLoginBindCode = data => http.post('/user/user/bind-code',data)

// 绑定手机
export const apiPostLoginBind = data => http.post('/user/user/bind',data)

// 验证手机短信验证码
export const apiPostLoginVerifyCode = data => http.post('/user/user/verify-code',data)

// 验证手机
export const apiPostLoginVerify = data => http.post('/user/user/verify',data)

// 绑定新手机短信验证码
export const apiPostLoginMobileCode = data => http.post('/user/user/mobile-code',data)

// 绑定新手机
export const apiPostLoginMobile = data => http.post('/user/user/mobile',data)

// 获取安装地址
export const apiGetUserInstallUrl = data => http.get('/user/install/url',data)
